package woniuxy.entity;

import java.util.List;
import java.util.Set;

public class American implements Person{

    String name;
    int age,sex;
    Person girl;
    List<Person> person;
    Set<String> girlfriend;
    public American() {
    }

    public Set<String> getGirlfriend() {
        return girlfriend;
    }

    public void setGirlfriend(Set<String> girlfriend) {
        this.girlfriend = girlfriend;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Person getGirl() {
        return girl;
    }

    public void setGirl1(Person girl) {
        this.girl = girl;
    }


    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public List<Person> getPerson() {
        return person;
    }

    public void setPerson(List<Person> person) {
        this.person = person;
    }

    @Override
    public String toString() {
        return "American{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", sex=" + sex +
                ", Girl=" + girl +
                ", person=" + person +
                ", girlfriend=" + girlfriend +
                '}';
    }

    @Override
    public void eat() {
        System.out.println("我是美国人，我在人民广场吃炸鸡！");
    }
}
